const mysql = require('../connect/index');
const sequelize = mysql.sequelize;
const { DataTypes } = require('sequelize');
const Article = sequelize.define("tab_article",{
    title:{
        type:DataTypes.STRING,
        allowNull:false,
    },
    brief:{
        type:DataTypes.STRING,
        allowNull:false,
    }
}, {
    'freezeTableName': true,
    'tableName': 'tab_article',
    'timestamps': true,
     // 不需要createdAt字段
     'createdAt': false,
     // 将updatedAt字段改个名
     'updatedAt': false
});
module.exports = Article;
